package com.company.作业;

import java.util.Scanner;

public class Main {
        public static void main(String[] args) {
            System.out.println("请输入小王的性别:"+"\n"+"请输入小张的性别:");
            Scanner in=new Scanner(System.in);
            String xwgender=in.next();
            String xzgender=in.next();
            if(xwgender.equals(xzgender)){
                System.out.println("对不起，你们不能结婚");
            }
            else{
                System.out.println("恭喜，你们可以结婚");
            }




        }
    }













